<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>用户新增</title>
		<link rel="stylesheet" type="text/css" href="../layui/css/layui.css" />
	</head>
	<body>
		<div class="layui-container">
			<div class="layui-row">
				<div class="layui-col-md12">
					<form class="layui-form" action="">
						<div class="layui-form-item">
							<label class="layui-form-label">角色名称</label>
							<div class="layui-input-block">
								<input type="text" name="roleName" required lay-verify="required" placeholder="请输入角色名称" autocomplete="off"
								 class="layui-input">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">权限标识</label>
							<div class="layui-input-block">
								<input type="text" name="roleKey" required lay-verify="required" placeholder="请输入权限标识" autocomplete="off" class="layui-input">
								<div class="layui-form-mid layui-word-aux"> 控制器中定义的权限字符，如：@RequiresRoles("")</div>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">显示顺序</label>
							<div class="layui-input-block">
								<input type="number" name="sort" required lay-verify="required" placeholder="请输入显示顺序" autocomplete="off" class="layui-input">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">状态</label>
							<div class="layui-input-block">
								<input type="checkbox" name="switch" lay-skin="switch">
							</div>
						</div>


						<div class="layui-form-item">
							<label class="layui-form-label">菜单权限</label>
							<div class="layui-input-block">
								<div style="border: 1px solid #dddddd;" id="test5" class="demo-tree"></div>
							</div>
						</div>

						<div class="layui-form-item">
							<label class="layui-form-label">按钮权限</label>
							<div class="layui-input-block">
								<input type="checkbox" name="verify" title="审核" lay-skin="primary">
								<input type="checkbox" name="save" title="新增" lay-skin="primary">
								<input type="checkbox" name="edit" title="修改" lay-skin="primary">
								<input type="checkbox" name="delete" title="删除" lay-skin="primary">
							</div>
						</div>

						<div class="layui-form-item">
							<label class="layui-form-label">备注</label>
							<div class="layui-input-block">
								<input type="text" name="remark" placeholder="请输入备注" autocomplete="off" class="layui-input">
							</div>
						</div>
						<div class="layui-form-item">
							<div class="layui-input-block">
								<button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
								<button type="reset" class="layui-btn layui-btn-primary">重置</button>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</body>
	<script src="../layui/layui.all.js" type="text/javascript" charset="utf-8"></script>
	<script src="../js/rolemanage/add.js" type="text/javascript" charset="utf-8"></script>
</html>
